#include "snailiotmonitoring.h"
#include "SnaillTcpClient.h"
#include <QApplication>
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    SnailIOTMonitoring w;

    // 获取 TcpClient 单例

        SnaillTcpClient* client = SnaillTcpClient::instance();
        if (client->connectToServer("127.0.0.1", 6666)) {
            qDebug() << "Connected to server1111";
        } else {
            qDebug() << "Failed to connect to server11111";
        }

    w.show();

    return a.exec();
}
